// /getaddress
import request from "./request"


// export  添加一个具名导出的方式
export function getaddress() {

    return request({
        url: "/getaddress",
        method: "get",
        headers: {
            token: localStorage.getItem("token")
        }
    })
}

//  data 放的是用户id 
//  val 放的数据
export function addaddress(data, val) {
    return request({
        url: '/addaddress/' + data,
        data: val,
        method: 'post',
    });
}